from models.Users import *

def CheckUserCreated(fn):
    def check(*args):
        query = D5User.all()
        query.filter("google_user = ",users.get_current_user())
        user = query.get()
        if not user:
            user = D5User(google_user=users.get_current_user())
            user.put()
        return fn(*args)
    return check
